package com.zkadmin.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.zkoss.zul.DefaultTreeModel;

import com.zkadmin.entity.SysResource;

public interface SysResourceService extends SysBaseService<SysResource> {
	public Page<SysResource> findGrouped(Pageable pageable);

	public SysResource createPermission(SysResource permission);

	public SysResource findByName(String name);

	public SysResource findByCode(String code);

	public SysResource findByPermission(String permission);

	public List<SysResource> findByCodeLike(String code);

	public void delete(Long resourceId);

	public List<SysResource> getRootResources();

	public DefaultTreeModel<SysResource> getResourceTreeModel(boolean isMultiple);
}
